package com.sc.VenusQueryBeta.contract.account.daishu;


import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;
import com.sc.VenusQueryBeta.model.bean.account.DaiShuBean;

import io.reactivex.Observable;

/**
 * Created by SC-02 on 2018/9/19.
 *  贷赎明细Contract(契约)接口
 */

public interface DaiShuContract {
    abstract  class  DaiShuPresenter extends BasePresenter<IDaiShuModel,IDaiShuView>{

        //查詢幣種列表
        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);

        //贷赎明细
        public abstract void daishu(int clientindex,String serverAddress, String projectName, int serverPort,String currencynameCN);
    }
    interface IDaiShuModel extends IBaseModel{

//查詢幣種列表
Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);


        ////贷赎明细
        Observable<DaiShuBean> daishu(int clientindex, String serverAddress, String projectName, int serverPort,String currencynameCN);
    }
    interface IDaiShuView extends IBaseActivity{
        void showdaishuDataSuccess(DaiShuBean daiShuBean);

        void showNetworkError(Throwable throwable);

        //查询厅(根据账房那边排序)
        void showqueryAllCurrencyList(CurrencyListBean CurrencyListBean);
    }
}
